//
//  UIColor+DSColorRGB.m
//  DemoTest
//
//  Created by DaShuEdu on 2017/5/12.
//  Copyright © 2017年 DaShuEdu. All rights reserved.
//

#import "UIColor+DSColorRGB.h"

@implementation UIColor (DSColorRGB)

- (CGFloat)red {
    CGFloat r = 0,g,b,a;
    [self getRed:&r green:&g blue:&b alpha:&a];
    return r;
}

- (CGFloat)green {
    CGFloat r,g = 0,b,a;
    [self getRed:&r green:&g blue:&b alpha:&a];
    return g;
}

- (CGFloat)blue {
    CGFloat r,g,b = 0,a;
    [self getRed:&r green:&g blue:&b alpha:&a];
    return b;
}

@end
